package com.can.convert;

import com.can.domain.entity.User;
import com.can.domain.vo.UserInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户表(User) 转换类
 *
 * @author cancan
 * @since 2023-05-06 14:31:22
 */
@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);


    UserInfoVO convert(User user);

    List<UserInfoVO> convertList(List<User> records);

    User convert01(UserInfoVO vo);
}
